﻿namespace Ngs.Collections
{
    using System;
    using System.Collections.Generic;

    public static class EnumerableExtensions
    {
        static EnumerableExtensions()
        {
        }



        public static IEnumerable<T> CanOnlyEnumerateOnce<T>(this IEnumerable<T> enumerable)
        {
            return new EnumerateOnce<T>(enumerable);
        }

        public static IEnumerable<T> DeferEnumerable<T>(this IEnumerable<T> enumerable)
        {
            return new DeferredList<T>(enumerable);
        }
    }
}
